import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}
// export function getUserInfo(userId) {
//   return request({
//     url: 'system/user/getUserInfo' + userId,
//     method: 'get'
//   })
// }
export function getUserInfo() {
  return request({
    url: '/getInfo'
  })
}

export function updatePassword(data) {
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    params: data
  })
}

export function addUserList(data) {
  return request({
    url: '/system/user/addUserList',
    method: 'post',
    data
  })
}
